package com.job.feign.client.message;

import com.job.client.common.result.ResponseResult;
import com.job.client.message.pojo.MessageItem;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(name = "client-message-service",path = "/api/v1/client/message")
public interface MessageFeign {
    @PostMapping("/saveMessage")
    public ResponseResult saveMessage(@RequestBody MessageItem messageItem,
                                      @RequestParam String messageId,
                                      @RequestParam String connectId);

    @PostMapping("/init")
    public ResponseResult createMessage(@RequestParam String messageId);
}
